package com.zj.transactionspringboot01.springboot;

import com.zj.pojo.Fruit;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.zj.transactionspringboot01.component")

public class Myconfig {

    @Bean
    Fruit fruit(){
        return new Fruit();
    }
}
